package com.yxw.springmvc.test;

/**
 * Created by hp on 2016/10/11.
 */
public class RandomTest1 {
    public static void main(String[] args) {
        for (int i = 0;i < 100;i++){
            int x = xorShift((int) System.currentTimeMillis());
            System.out.println(x);
        }
    }

    public static int xorShift(int y){
        y ^= (y << 6);
        y ^= (y >>> 21);
        y ^= (y << 7);
        return y;
    }

}
